package cn.deschen.biz.mapper;

import cn.deschen.biz.domain.entity.AdUnitEle;
import cn.deschen.biz.dto.unit.UnitEleDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author deschen
 * @since 2021-06-21
 */
public interface AdUnitEleMapper extends BaseMapper<AdUnitEle> {

    /**
     * 根据推广单元ID获取关联元素信息
     * @param unitId
     * @return
     */
    List<UnitEleDTO> getElesById(@Param("unitId") Long unitId);
}
